package com.offcn.webui.service;

import com.offcn.common.response.AppResponse;
import com.offcn.webui.vo.resp.ProjectDetailVo;
import com.offcn.webui.vo.resp.ProjectVo;
import com.offcn.webui.vo.resp.TReturn;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value="SCW-PROJECT")
public interface ProjectFeignService {

    @GetMapping("/projectInfo/getAllProject")
    public AppResponse<List<ProjectVo>> getAllProject();

    @GetMapping("/projectInfo/getProjectById")
    public AppResponse<ProjectDetailVo> getProjectById(@RequestParam Integer projectId);

    @GetMapping("/projectInfo/getReturn/{returnId}")
    public AppResponse<TReturn> getReturnById(@PathVariable("returnId") Integer returnId);
}
